package mall.service;

import mall.repository.ImageDao;
import mall.entity.Image;

public class ImageService {
    private final ImageDao dao = new ImageDao();

    public Image download(String id) {
        return dao.selectById(id);
    }

    public int upload(Image image) {
        return dao.insert(image);
    }

}
